package com.eight.travel.dao;

import com.eight.travel.pojo.Hotel;
import com.eight.travel.vo.HotelCheckin;
import com.eight.travel.vo.HotelCom;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
@Mapper
public interface HotelDao {
    List<Hotel> findbylike(String name);
    List<Hotel> finAll();

//    热度排序
    List<Hotel> finhotelhot(String address);


    //星级排序
    List<Hotel> finhotelstart(String address,Integer start);
    //价格排序
    List<Hotel> findhotelprice(String address);
    //根据订单id查询到对应的用户
    HotelCheckin findbyuid(Integer uid, String number);

    //优惠查询
    HotelCheckin youhui(Integer uid);
//    查看评论
    List<HotelCom> ViewCom(Integer hid);
    //提交评论
    int subCom(String com, Integer oid, Date comdate);
    //订房问题
    Hotel orderRoom(Integer hid);



//    最后一个订单时间
    HotelCheckin endOrdestime(Integer oid);
}
